package com.beeantec.jnrerc.modules.course.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.beeantec.jnrerc.dto.response.AdminExamRecRespDTO;
import com.beeantec.jnrerc.dto.response.AdminStudyRecRespDTO;
import com.beeantec.jnrerc.entity.CourseMemberStudyLog;
import com.beeantec.jnrerc.mapper.CourseMemberStudyLogMapper;
import com.beeantec.jnrerc.modules.course.service.CourseMemberStudyLogService;
import org.springframework.stereotype.Service;

@Service
public class CourseMemebrStudyLogServiceImpl extends ServiceImpl<CourseMemberStudyLogMapper, CourseMemberStudyLog> implements CourseMemberStudyLogService {
    @Override
    public IPage<AdminStudyRecRespDTO> admin_paging(Integer pageNum, Integer pageSize, Integer memberId) {
        Page<AdminStudyRecRespDTO> page = new Page<>(pageNum, pageSize);

        IPage<AdminStudyRecRespDTO> iPage= baseMapper.admin_paging(page,memberId);
        return iPage;
    }
}
